<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "promo_agent".
 *
 * @property string $promo_code
 * @property string $brand_url
 * @property string $brand_name
 * @property string $brand_logo
 * @property string $wechat_url
 * @property string $wechat_ticket
 * @property string $create_time
 * @property string $status
 */
class PromoAgent extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'promo_agent';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['promo_code'], 'required'],
            [['create_time'], 'safe'],
            [['promo_code'], 'string', 'max' => 32],
            [['brand_url', 'brand_name', 'brand_logo', 'wechat_url', 'wechat_ticket'], 'string', 'max' => 200],
            [['status'], 'string', 'max' => 16],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'promo_code' => 'Promo Code',
            'brand_url' => 'Brand Url',
            'brand_name' => 'Brand Name',
            'brand_logo' => 'Brand Logo',
            'wechat_url' => 'Wechat Url',
            'wechat_ticket' => 'Wechat Ticket',
            'create_time' => 'Create Time',
            'status' => 'Status',
        ];
    }
}
